﻿using System;
using System.Collections.Generic;
using System.Web.Mvc;
using Products;
using Products.DataAcccess;

namespace Ornament.MVCWebFrame.Controllers
{
    public class ProductController : Controller
    {
        //
        // GET: /Product/

        public ActionResult Index()
        {
            var result = (new ProductDao()).FindAll(0, 150);
            return View(result);
        }

        public ActionResult Edit(Guid? id)
        {
            return View();
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Edit(Product product)
        {
            return View();
        }
    }
}